﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %> 
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PickerPage.aspx.cs" Inherits="SPSolutions.Samples.PickerApp.Layouts.PickerApp.PickerPage" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register TagPrefix="SPSolutions" Namespace="SPSolutions.Samples.PickerApp.WebControls" Assembly="$SharePoint.Project.AssemblyFullName$" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

<table border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet" width="100%">
	
	<% // City Selector %>
	<wssuc:InputFormSection Title="City Selector" Description="Use this section to test the city selector and city editor." runat="server">
		<Template_InputFormControls>
            <wssuc:InputFormControl LabelText="Select City:" runat="server">
				<Template_Control>
                    <SPSolutions:CitySelector id="CitySelector" Width="200" runat="server" 
                        OnContextChange="CitySelector_ContextChange" 
                        UseCookieInitialization="false" 
                        TypeLabelCssClass="ms-descriptiontext"
                        /><br />
                    <br />
                    Note - This is a context change and the page will be refreshed.                    
				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
    
    <% // City Editor (Single) %>
	<wssuc:InputFormSection Title="City Editor (Single)" Description="Use this section to test the city editor." runat="server">
		<Template_InputFormControls>
            <wssuc:InputFormControl LabelText="Select City:" runat="server">
				<Template_Control>
                    <SPSolutions:CityEditor id="CityEditorSingle" runat="server"
                        MultiSelect="false"
                        ValidatorEnabled="true" 
                        MaximumEntities="1" />                           
				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
    
    <% // City Editor (Multiple) %>
	<wssuc:InputFormSection Title="City Editor (Multiple)" Description="Use this section to test the city editor." runat="server">
		<Template_InputFormControls>
            <wssuc:InputFormControl LabelText="Select City:" runat="server">
				<Template_Control>
                    <SPSolutions:CityEditor id="CityEditorMultiple" runat="server" Rows="3"
                        MultiSelect="true" 
                        PlaceButtonsUnderEntityEditor="true"
                        ValidatorEnabled="true" />                           
				</Template_Control>
			</wssuc:InputFormControl>
		</Template_InputFormControls>
	</wssuc:InputFormSection>
    
    <wssuc:ButtonSection runat="server">
        <Template_Buttons>
            <asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" OnClick="FinishButton_Click" Text="Finish" id="BottomFinishButton" AccessKey="f" />
        </Template_Buttons>
    </wssuc:ButtonSection>
</table>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Picker Page
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Picker Page
</asp:Content>
